﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DMS.Business.Utility
{
    public class MoneyHelper
    {
        public static string SetMoneyFormat(string money, int DecimalCount)
        {
            string rtn_money = "0.000";
            if (!string.IsNullOrEmpty(money))
            {
                rtn_money = Math.Round(double.Parse(money), DecimalCount).ToString();
            }

            return rtn_money;
        }
        public static string SetMoneyFormat(double money, int DecimalCount)
        {
            string rtn_money = "0.000";

            rtn_money = Math.Round(money, DecimalCount).ToString();
            

            return rtn_money;
        }

        public static double SetMoneyFormat2(double money, int DecimalCount)
        {
            double rtn_money = 0.000;

            rtn_money = Math.Round(money, DecimalCount);


            return rtn_money;
        }
    }
}
